package com.sdkj.recruit.dao;

import java.util.List;

import com.sdkj.recruit.model.CompanyResume;
import com.sdkj.recruit.model.EducationalExperience;
import com.sdkj.recruit.model.Resume;
import com.sdkj.recruit.model.WorkExperience;

public interface IUserResumeDao {

	/**
	 * 保存简历
	 * 
	 * @return
	 */
	String saveResume(Resume resume);

	/**
	 * 删除简历
	 * 
	 * @param resumeId
	 */
	void deleteResume(String resumeId);

	/**
	 * 获取简历
	 * 
	 * @param resumeId
	 * @return
	 */
	Resume queryResume(String resumeId);

	/**
	 * 保存工作经历
	 * 
	 * @param vo
	 * @return
	 */
	String saveWorkExperience(WorkExperience vo);

	/**
	 * 教育经历
	 * 
	 * @param vo
	 * @return
	 */
	String saveEducationalExperience(EducationalExperience vo);

	/**
	 * 教育经历
	 * @param eduList
	 */
	void saveEducationalExperience(List<EducationalExperience> eduList);

	/**
	 * 工作经历
	 * @param workList
	 */
	void saveWorkExperience(List<WorkExperience> workList);

	/**
	 * 获取教育信息
	 * @param resumeId
	 */
	List<EducationalExperience> queryEduList(String resumeId);

	/**
	 * 获取工作信息
	 * @param resumeId
	 */
	List<WorkExperience> queryWorkList(String resumeId);

	void deleteWorkList(String resumeId);

	void deleteEduList(String resumeId);

	void updateResume(Resume resume);

	void updateEducationalExperience(List<EducationalExperience> eduList);

	void updateWorkExperience(List<WorkExperience> workList);

	void updateWorkExperience(WorkExperience we);

	void updateEducationalExperience(EducationalExperience we);

	void deleteEducationalExperience(String id);

	void deleteWorkExperience(String id);

	void sendResume(CompanyResume cr);

	Resume queryResumeByUserId(String userId);

	CompanyResume queryCompanyResume(String userId, String resumeId, String companyId, String positionId);
}
